/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipti.br.tag.util;

import org.ipti.br.tag.bo.ConfigurationsBO;
import javax.annotation.PostConstruct;
import javax.ejb.Singleton;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;

/**
 *
 * @author luancorumba
 */
@ApplicationScoped
@Singleton
public class Application {
    
    @Inject
    private ConfigurationsBO configurationsBO;
    
    private Long id;
    
    @PostConstruct
    public void init() {
        id = configurationsBO.getSerialNumber();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
